package com.example.fina2202.day10;

public class Test {
    public static void main(String[] args) {
        new Child("mike");
    }
}

class People {
    String name;
    public People() {
        super();
        System.out.print(1);
    }
    public People(String name) {
        super();
        System.out.print(2);
        this.name = name;
    }
}
class Child extends People {
    People father;
    public Child(String name) {
        super();
        System.out.print(3);
        this.name = name;
        father = new People(name + ":F");
    }
    public Child() {
        super();
        System.out.print(4);
    }
}
